<?php 
namespace app\Admin\model;
use think\Model;
use think\Db;

class Attr extends Base
{
	protected $table = 'attribute';
	
	/*添加数据*/
	public function addData($data){
		$result = Db("$this->table")->insert($data);
		return $result;
	}
	
}	